package com.freecloud.javabasics.design.entity.car;

import com.freecloud.javabasics.design.entity.Manufacturers;

import java.io.Serializable;

/**
 * @Author: maomao
 * @Date: 2019-10-31 08:28
 */
public class DaZhong extends Car implements Serializable,Cloneable {

    private String title;
    private Manufacturers manufa;

    @Override
    public String getName() {
        return "大众朗逸";
    }

    @Override
    public Manufacturers getManufacturers() {
        if(manufa == null){
            manufa = new Manufacturers("大众");
        }
        return manufa;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setManufa(Manufacturers manufa) {
        this.manufa = manufa;
    }
    public Manufacturers getManufa() {
        return manufa;
    }
    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
